<switch name="$operation.type" >
<case value="link">
    <button class="operate-click btn {$operation.opt.class}" operate-type="link"  operate-id="{$data.id}" operate-url="{$operation.url}">{$operation.text}</button>
</case>
<case value="post">
    <button class="operate-click btn {$operation.opt.class}" operate-type="post"  operate-id="{$data.id}" operate-url="{$operation.url}">{$operation.text}</button>
</case>
    <case value="postTextChange">
        <button class="operate-click btn btn-secondary {$data[$operation.statusName] | TextChangeHidden}" operate-type="postTextChange" operate-button-type="publish"  operate-id="{$data.id}" operate-url="{$operation.url}">{$operation.text}</button>
        <button class="operate-click btn btn-white {$data[$operation.statusName] | TextChangeShow}" operate-type="postTextChange"   operate-id="{$data.id}" operate-url="{$operation.url}">{$operation.changeTitle}</button>
    </case>
 <case value="modal">
        <button class="operate-click btn {$operation.opt.class}" operate-type="modal"  operate-id="{$data.id}" operate-url="{$operation.url}">{$operation.text}</button>
 </case>

<default />

</switch>